package com.dalianpai.gulimall.order.feign;

import com.dalianpai.gulimall.order.vo.MemberReceiveAddressEntity;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

import java.util.List;

/**
 * @author WGR
 * @create 2020/7/27 -- 23:46
 */
@FeignClient("gulimall-member")
public interface MemberFeignService {

    @GetMapping("/member/memberreceiveaddress/{memberId}/addresses")
     List<MemberReceiveAddressEntity> getAddress(@PathVariable("memberId") Long memberId);
}
